import request from '@/utils/request'

export function getSubjectList() {
  return request({
    url: '/manager/subject/list',
    method: 'post'
  })
}

export function getId(id) {
  return request({
    url: '/manager/subject/detail',
    method: 'post',
    data: id
  })
}

export function delId(id) {
  return request({
    url: '/manager/subject/delete',
    method: 'post',
    data: [id]
  })
}

export function update(params) {
  return request({
    url: '/manager/subject/modify',
    method: 'post',
    data: params
  })
}

export function add(params) {
  return request({
    url: '/manager/subject/create',
    method: 'post',
    data: params
  })
}

